Skip to content

Conversation

@dhasani23
Copy link
Contributor

@dhasani23 dhasani23 commented Mar 25, 2025

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

When we get an InvalidGrantException we should not be trying to refresh the token; rather, we should prompt the user to re-authenticate to Q.

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dhasani23 dhasani23 requested review from a team as code owners March 25, 2025 23:00
refreshToken(project)
CodeTransformMessageListener.instance.onCheckAuth()
notifyStickyWarn(
message("codemodernizer.notification.warn.expired_credentials.title"),

Check warning

Code scanning / QDJVMC

Usage of redundant or deprecated syntax or deprecated symbols Warning

'message(String, vararg Any): String' is deprecated. Use extension-specific localization bundle instead
CodeTransformMessageListener.instance.onCheckAuth()
notifyStickyWarn(
message("codemodernizer.notification.warn.expired_credentials.title"),
message("codemodernizer.notification.warn.expired_credentials.content"),

Check warning

Code scanning / QDJVMC

Usage of redundant or deprecated syntax or deprecated symbols Warning

'message(String, vararg Any): String' is deprecated. Use extension-specific localization bundle instead
message("codemodernizer.notification.warn.expired_credentials.content"),
project,
listOf(
NotificationAction.createSimpleExpiring(message("codemodernizer.notification.warn.action.reauthenticate")) {

Check warning

Code scanning / QDJVMC

Usage of redundant or deprecated syntax or deprecated symbols Warning

'message(String, vararg Any): String' is deprecated. Use extension-specific localization bundle instead

class CodeModernizerBottomWindowPanelManager(private val project: Project) : JPanel(BorderLayout()) {
private var lastShownProgressPanel: Component? = null
private var progressPanel: Component? = null
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed just to fix a detekt issue further down about exceeding max line length

@dhasani23 dhasani23 enabled auto-merge (squash) March 27, 2025 21:50
@dhasani23 dhasani23 merged commit a4f5c07 into aws:main Mar 28, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants